package com.neusoft.SPNursingHome.service;

import com.neusoft.SPNursingHome.po.Bed;
import com.neusoft.SPNursingHome.po.BedRecord;
import com.neusoft.SPNursingHome.po.ResponseBean;

import java.util.List;
import java.util.Map;
import java.util.Date;

public interface BedService {
    ResponseBean<List<String>> getAllFloors();
    ResponseBean<Map<String, List<Bed>>> findAvailableBedsByFloor(String floorId);
    ResponseBean<Void> update(Bed bed);

    ResponseBean<Map<String, Object>> getBedChartByFloor(String floorId);
    // 修改床位使用结束时间
    boolean updateBedUsageEndTime(Integer bedRecordId, Date endTime);

    //调换床位
    boolean swapBedForClient(Integer clientId, Integer newBedId);

    /** 获取所有当前有空闲床的房间号列表 */
    ResponseBean<List<String>> listRoomsWithFreeBeds();

    /** 根据房间号，获取该房间下所有当前空闲床 */
    ResponseBean<List<Bed>> listFreeBedsByRoom(String roomId);

}
